projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8bae534
)
textview: Fix comparison thinko
author
Benjamin Otte
<otte@redhat.com>
Sun, 31 Mar 2019 18:04:02 +0000
(20:04 +0200)
committer
Benjamin Otte
<otte@redhat.com>
Sun, 31 Mar 2019 18:22:05 +0000
(20:22 +0200)
Apparently, we have no test that checks for actually drawing text, so
the thinko that caused all text to disappear in
4b07d2815375856823532b2238d87455c3be2f7c
went unnoticed.
gtk/gtktextlayout.c
patch
|
blob
|
history
diff --git
a/gtk/gtktextlayout.c
b/gtk/gtktextlayout.c
index 7947eadcf803dfcdf7b7dd6aea28ed31ee00168d..2ebddbbda64668dca785dc2a36fb8ff919ee3a5f 100644
(file)
--- a/
gtk/gtktextlayout.c
+++ b/
gtk/gtktextlayout.c
@@
-723,7
+723,7
@@
gtk_text_layout_get_lines (GtkTextLayout *layout,
g_return_val_if_fail (GTK_IS_TEXT_LAYOUT (layout), NULL);
- if (top_y
<
= bottom_y)
+ if (top_y
>
= bottom_y)
return NULL;
retval = NULL;